package org.example.DesignPatterns.Proxy;

/**
 * @description:
 * @author: farprt
 * @create: 2022-03-10 13:48
 **/
public class Proxy extends Subject{
    RealSubject realSubject;
    @Override
    public void Request() {
        if(realSubject==null){
            realSubject=new RealSubject();
        }
        realSubject.Request();
    }
}